﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2021_5_31
{
    //1、学生类：学号、姓名、年龄
    class Student
    {
        public int StudentID { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }

        public Student() { }

        public Student(int ID , string name , int age)
        {
            this.StudentID = ID;
            this.Name = name;
            this.Age = age;
        }

        public override string ToString()
        {
            return $"学号：{StudentID} 姓名：{Name} 年龄:{Age}";
        }
    }
}
